#include "logging.h"
#include "os_helper.h"

#include <source_location>
#include <iostream>
#include <array>

//static std::string_view levelstrlist[] LOGLEVEL_NAMES;

std::string_view level_to_str(LogLevel level)
{
	size_t levelInt = static_cast<size_t>(level);
	if (levelInt < 0 && levelInt >= NUM_LOG_LEVELS) {
		return "";
	}
	return levelstrlist[levelInt];
}
